﻿using System;
using TaleWorlds.CampaignSystem;
using TaleWorlds.CampaignSystem.GameState;
using TaleWorlds.Core;

namespace MarriageFertility.banner;

    public class MfBannerEditorState : GameState
    {
        private IBannerEditorStateHandler _handler;

        private Clan _clan;
        
        public override bool IsMenuState => true;

        public MfBannerEditorState()
        {
            throw new AggregateException();
        }

        public MfBannerEditorState(Clan clan)
        {
            _clan = clan;
        }
        
        public Clan GetClan() => _clan;
        
        public IBannerEditorStateHandler Handler
        {
            get => _handler;
            set => _handler = value;
        }
        public CharacterObject GetCharacter() => _clan.Leader.CharacterObject;
    }

